﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CPSC481
{
    public partial class MainPage : Form
    {
        public MainPage()
        {
            InitializeComponent();
            setBoxToolTip(breakfastBox,"Breakfast" );
            setBoxToolTip(lunchBox, "Lunch");
            setBoxToolTip(dessertBox, "Dessert");
            setBoxToolTip(dinnerBox, "Dinner");
            ReadFile.read("recipe_a.txt");
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SearchPage search = new SearchPage();
            this.Hide();
            search.Show();

        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void breakfastBox_Click(object sender, EventArgs e)
        {

        }

        private void lunchBox_Click(object sender, EventArgs e)
        {
            SearchPage search = new SearchPage();
            this.Hide();
            search.Show();
        }

        private void setBoxToolTip(PictureBox box, String toolTip)
        {
            ToolTip tip = new ToolTip();
            tip.SetToolTip(box, toolTip);
        }

        private void dessertBox_Click(object sender, EventArgs e)
        {

        }

        private void dinnerBox_Click(object sender, EventArgs e)
        {

        }

        private void MainPage_Load(object sender, EventArgs e)
        {

        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

 
       
    }

}
